﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="photomania._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Welome To 
        fashion PhotoMania</h2>
    <br />
    
    <div id="sidebar" style="position: relative; vertical-align: top;overflow: auto;">
        <b>Most highly rated pictures of the Forum</b>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="pic_id"
            BackColor="#4b6c9e" BorderColor="White" BorderStyle="None" HeaderStyle-ForeColor="White"
            BorderWidth="1px" CellPadding="3" CellSpacing="2" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="Rating" HeaderText="Rating" 
                    SortExpression="Rating" Visible ="false"  />
               <%-- <asp:BoundField DataField="imagelocation" HeaderText="imagelocation" 
                    SortExpression="imagelocation" />--%>
                    <asp:ImageField DataImageUrlField="imagelocation" HeaderText="Best Pictures">
                    <ControlStyle Height="250px" Width="250px" />
                </asp:ImageField>
                <asp:BoundField DataField="pic_id" HeaderText="pic_id" InsertVisible="False" 
                    ReadOnly="True" SortExpression="pic_id" Visible ="false"  />
            </Columns>
            </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:photodb %>" 
            ProviderName="<%$ ConnectionStrings:photodb.ProviderName %>" 
            SelectCommand="SELECT TOP 4 [imagelocation],[pic_id] FROM [RatingImages] ORDER BY [AverageRating] DESC">
        </asp:SqlDataSource>
    </div>
    
    <br />
    <asp:ImageButton ID="ImageButton1" runat="server" Height="100px" Width="100px" ImageUrl="~/pictures/blankprofile.jpg" />
    <br />
    <b>Click Above to View Your Profile</b>
    <p>Every person nurtures an innate desire of looking good and feel ‘accepted’ in the socio-economic circle. The word fashion instantaneously brings to mind a flash of colour with a dash of glamour.

Women are taking to fashion in a big way, and are experimenting with different looks, styles, and textures.

Fashion plays an increasingly important role in an indivi­dual’s life because it is considered as a means of self-expression. The garments and accessories that man or women wear, help them to identify with a group of others-whether it is a lifestyle, profession, a religion, or an attitude. Thus, the term ‘fashion’ has become synonymous with the overall growth of the country as well.</p>
    <asp:Image ID="Image1" runat="server" ImageUrl ="~/pictures/walk.jpg" 
        ImageAlign="Baseline" Width="565px" />
</asp:Content>
